-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gherkin (Python): Updating to Python 3 (standard minimum supported version is now 3.7) #1982
Conversation
…but technically the code supports Python 3.3+)
Apologies - I accidentally made a branch against the cucumber project itself, rather than a fork! (Slap on the wrist and will do so going forward!) |
Remove Gherkin for Python 2 from circle-ci
Missed a reference to python 2 in circleci
Build fails after merging "main" into this branch - not sure about this cause:
|
What is happening here is that, as part of the monorepo, a few files are shared across all components.
In order to update such file, you have to actually update the one in If you are not sure, we could pair if you want. If so, do not hesitate to contact me on slack :) |
Thank you so much for your assistance, @aurelien-reeves ! The build seems happy again :) |
So, the big question here is: do everyone agree to end support for python 2? Myself, I would agree. But I am not really a python developer so I may miss some background here |
Generate parser.py from razor file, rather than manual. A few missed tidy ups (e.g. defining an attribute in __init__ instead of dynamically when calling a method; 'rU' for read is deprecated and U is default for Python 3)
Resolved the issue with using the Razor file to generate parser.py. |
Requirement to continue support for Python 2. |
…but technically the code supports Python 3.3+)
Summary
A general code clean up to remove references to Python2 and any other unsupported versions. Technically the code supports Python 3.3+, but unintentionally.
Details
Motivation and Context
Prepare for feature changes without having to support unnecessary backwards-compatability
How Has This Been Tested?
Unit tests run as expected
Screenshots (if appropriate):
Types of changes
Checklist: